using SuperSocket.Command;

namespace SuperSocketProxy.Commands;

[Command(Key = (int)Command.ForwardData)]
public sealed class ForwardData : SocketProxyAsyncCommand<SocketProxyDataPacket>
{
    protected override ValueTask ExecuteAsync(SocketProxySession session, SocketProxyDataPacket package)
    {
        return session.SendTargetAsync(package.Body);
    }
}